﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Default5 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable userTable = null;  
        if (!IsPostBack)
        {
            try
            {

                userTable = (DataTable)Application["OnlineUsers"];

            }

            catch
            {

                Response.Write("获得内存在线数据失败");

            }

            if (userTable != null)
            {

                GridView1.DataSource = userTable;

                GridView1.DataBind();

            }  
        }
    }
}